home *** CD-ROM | disk | FTP | other *** search
- .so psroff.inc # Include the macros needed for output to Postscript
- .TH Import-StudioPro
- .SH NAME
- imp_stra \- Strata StudioPro geometry import filter
- .SH SYNOPSIS
- .PP
- This man page describes the options specific to the Strata StudioPro geometry
- import converter.
- .PP
- .SH EXAMPLE CONVERSION SYNTAX
- .PP
- To convert a Strata StudioPro file to Wavefront using the default
- parameters listed in the setup.ini file:
- .IP
- pt -i sspro -o wave filename.vis
- .PP
- To convert a Strata StudioPro file to VRML and override some of the default
- options in setup.ini:
- .IP
- pt -i sspro -in-sspro-debug = yes -o vrml filename.vis
- .PP
- .SH OVERVIEW
- .PP
- This geometry import converter reads files which are in the Strata StudioPro
- file format. This converter is probably one of the most complete Strata
- StudioPro file readers next to that of the one included with Strata StudioPro
- itself. You will find that most StudioPro models are of quite high quality,
- with good use of bezier patches (for high resolution modeling) and good use
- of shading + texture mapping to give realistic rendered results.
- .PP
- This converter reads in almost every aspect of a StudioPro file so that the
- file can be rendered with little or no modifications by the NuGraf renderer,
- or exported and rendered faithfully with an external renderer such as
- Autodesk's 3D Studio. All in all this is one of the more complex import
- converters. See the end of the this file which describes which entities are
- handled by this converter.
- .PP
- .SH OVERVIEW
- .PP
- 1. If you are converting a Strata StudioPro file which was obtained from an
- Apple Macintosh machine then you must manually add the '.vis' file extension
- to these files.
- .PP
- 2. There is a good chance that this converter will not work on future files
- saved from Strata's StudioPro program. This is due to the fact that the
- StudioPro file format does not allow unknown chunks to be skipped over. At
- such a time this converter will be updated with the file format information
- must be officially obtained from Strata Corporation.
- .PP
- 3. Strata StudioPro files are unusual because they embed the texture images
- right inside the scene file itself (almost all other file formats do not do
- this). This converter extracts these embedded images and stores them on disk
- as TIFF files with the first few letters of the texture image filename coming
- from that of the original StudioPro input filename. The TIFF files are
- stored in the directory controlled by the '-in-sspro-texture-dest-directory-type'
- option described below.
- .PP
- 4. Please be wary of any StudioPro files which were not written out by the
- Strata StudioPro program itself - many of such files are corrupt or written
- in a non-standard method. For example, the StudioPro files on Viewpoint
- Datalab's '5 Free for Siggraph 95' are some such examples - they have placed
- each and every polygon within its own object definition rather than placing
- all polygons within one object; in addition, many of these example models
- have incorrect entity offsets that are completely illegal. This converter
- tries to detect such bad files and will try to read the files if possible.
- .PP
- .SH COMMAND LINE OPTIONS
- .PP
- The following options are specific to this import converter:
- .TP
- -i sspro
- This is the optional command line option which specifies that the input data
- is in Strata StudioPro file format. If not specified then the
- converter will try to guess the input file's format from its file extension
- and then from the contents of its file. Note that the valid file extension
- is .vis.
- .TP
- -in-sspro-bezier-subdiv-type = [ low | medium | high | custom ]
- Many StudioPro models are created using Bezier patches rather than polygons.
- Bezier patches are stored in the file using a mathematical description of a
- smooth surface instead of a rough approximation by polygons.
- .IP
- During the export process (say, when exporting a StudioPro file format to 3D
- Studio), these Bezier patches must be converted to polygons. The
- '-in-sspro-bezier-subdiv-type' option specifies how finely to subdivide these
- bezier patches when turning them into polygonalized surfaces. Higher numbers
- created more polygons, and thus smoother surfaces, but at the expense of
- larger exported files and longer rendering times.
- .IP
- The program defaults to 'low' (6x6 subdivisions). A good way of determining
- if you need to increase this subdivision level is check to see if the exported
- file is being rendered properly in the destination renderer. In many cases
- StudioPro bezier patches are highly curved which causes 'non-planar' polygons
- to appear in the exported file; these non-planar polygons are illegal in many
- rendering programs. To solve this non-planar polygon problem, just increase
- the number of subdivisions (so that the bezier patch surface is turned into
- many more smaller polygons).
- .IP
- The following describe the different subdivision levels:
- .IP
- low = 6x6 = 36 polygons per Bezier patch.
- .IP
- medium = 20x20 = 400 polygons per Bezier patch.
- .IP
- high = 50x50 = 2500 polygons per Bezier patch.
- .IP
- custom = User defined. The subdivision level is set with the
- '-in-sspro-bezier-subdivisions' described below.
- .TP
- -in-sspro-bezier-subdivisions = <num_bezier_subdivisions>
- This is the number of subdivisions in the u and v directions for Bezier
- patches if the '-in-sspro-bezier-subdiv-type' option above is set to
- 'custom'. If you assign a number greater than 1 then the bezier patch will
- be subdivided into the square of this number. For example, if you assign 4
- then 16 polygons will be used. If you assign 10 then 100 polygons will be used.
- .TP
- -in-sspro-confirm-txtr-overwrites = [ yes | no ]
- Strata StudioPro files are unusual because they embed the texture images right
- inside the scene file itself (almost all other file formats do not do this). This
- converter extracts these embedded images and stores them on disk as TIFF
- files in the directory controlled by the '-in-sspro-texture-dest-directory-type'
- option described below.
- .IP
- If this option is set to 'yes' then the program will first confirm whether a texture
- file (which is being extracted from the StudioPro file and saved to disk) should be
- overwritten. If the user does not want the file, which already exists on disk, to be
- overwritten then the converter will skip it. If this checkbox is not enabled then any
- potential file overwrites will not be confirmed.
- .TP
- -in-sspro-texture-dest-directory-type = [ use-input-file-directory | use-execution-directory | use-specific-directory ]
- Strata StudioPro files are unusual because they embed the texture images right
- inside the scene file itself. This converter extracts these embedded images
- and stores them on disk as TIFF files in the directory controlled by this
- '-in-sspro-texture-dest-directory-type' option.
- .IP
- The 'use-input-file-directory' option saves out the TIFF images to the same
- directory where the Strata StudioPro input file was read from.
- .IP
- The 'use-execution-directory' option saves out the TIFF images to the
- directory where this translation program was executed from.
- .IP
- The 'use-specific-directory' option saves out the TIFF images to the directory
- specified by the '-in-sspro-texture-dest-directory' option below.
- .TP
- -in-sspro-texture-dest-directory = "a valid directory path"
- This option lists a directory path where the Strata StudioPro embedded bitmap
- images will be saved to disk as TIFF images. This directory path only applies
- while the '-in-sspro-texture-dest-directory-type' option is set to
- 'use-specific-directory'.
- .TP
- -in-sspro-output-debug-info = [ yes | no ]
- If this option is set to 'yes' then the contents of the Strata StudioPro file
- will be verbosely described and output to the file 'debugstr.txt'.
- .TP
- -in-sspro-report-stats = [ yes | no ]
- If this option is set to 'yes' then the converter will report the number of
- objects, polygons, cameras, lights and materials created.
- .TP
- -in-sspro-read-cameras = [ yes | no ]
- .PD 0
- .TP
- -in-sspro-read-lights = [ yes | no ]
- .TP
- -in-sspro-read-geometry = [ yes | no ]
- .TP
- -in-sspro-read-materials = [ yes | no ]
- .PD
- These switches allow specific sections of the Strata StudioPro file to be excluded
- or included in the import process. All default to 'yes' which means that
- all named entities will be read in. If set to 'no' then the named section(s)
- will not be read into memory.
- .PP
- .SH CURRENTLY SUPPORTED STUDIOPRO ENTITIES
- .PP
- .nf
- TCONE
- TCUBE
- TBEZIERMESH
- TBEZIERPATCH
- TDISC
- TENTITY
- TINSTANCE
- TGROUP
- TCAMERA
- TMODEL
- TMESH
- TDIRECTIONALLIGHT
- TPOSITIONALLIGHT
- TBULEMICMESH
- TSELECTIVEMESH
- TORDEREDBEZIERMESH
- TSPHERE
- TSPOTLIGHT
- TIMAGEMAP
- TRGBIMAGEMAP
- T2DRECT
- TATTRIBUTE
- T2DPOLYLINE
- T2DHOLE
- T2DPOLYGON
- TSHADER
- TMETALSHADER
- TPOLYLINE
- THOLE
- TPOLYGON
- TSURFACEMAP
- .fi
- .PP
- .SH CURRENTLY NON-SUPPORTED STUDIOPRO ENTITIES
- .PP
- .nf
- T3DPAINT
- TCUBEROUNDED
- TEXTERNALENTITY
- TSKINENTITY
- TSKINENTITYNEW
- TTRIANGLE
- TSMOOTHTRIANGLE
- TBLENDINGSHADER
- TEXTERNALSHADER
- TENVIRONMENT
- TSHADERENVIRONMENT
- TEXTERNALENVIRONMENT
- THORIZONENVIRONMENT
- TPICTUREENVIRONMENT
- TRGBENVIRONMENT
- TLAYER
- TLINKAGES
- T2DENTITY
- T2DBEZIERCURVE
- T2DBEZIERHOLE
- T2DBEZIERREGION
- TCLOSEDRIB
- TOPENRIB
- T2DGROUP
- T2DOVAL
- T2DROUNDRECT
- TQUICKDISPLAYLIST
- .fi